{empty name="goodsLabel"}
    <tr>
        <td class="no-data" align="center" axis="col0" colspan="50">
            <div class="no_row">
                <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
            </div>
        </td>
    </tr>
{else/}
    {foreach name="goodsLabel" item="vo" key="k" }
    <tr class="tr">
        <td class="operation">
            <div class="w40 tc">
                {$k+1}
            </div>
        </td>
        <td> 
            <div class="w200 tc">
                <input type="text" name="label_title[]" value="{$vo.label_title}" onchange="changeTableVal('shop_goods_label', 'label_id', '{$vo.label_id}', 'label_title', this);" class="tl">
            </div>
        </td>
        <td style="width: 100%">
            <div style="padding-left: 10px;">
                <input type="text" name="label_intro[]" value="{$vo.label_intro}" onchange="changeTableVal('shop_goods_label', 'label_id', '{$vo.label_id}', 'label_intro', this);" style="width: 95%;">
            </div>
        </td>
        <!-- <td>
            <div class="w80 tc">
                {if condition="$vo['selected'] eq 1"}
                <span class="yes" onClick="changeTableVal('shop_goods_label', 'label_id', '{$vo.label_id}', 'selected', this);"><i class="fa fa-check-circle"></i>是</span>
                {else /}
                <span class="no" onClick="changeTableVal('shop_goods_label', 'label_id', '{$vo.label_id}', 'selected', this);"><i class="fa fa-ban"></i>否</span>
                {/if}
            </div>
        </td> -->
        <td class="operation">
            <div class="w80 tc">
                {eq name="'ShopProduct@goods_label_del'|is_check_access" value="1"}
                <a class="btn red" href="javascript:void(0);" onclick="deleteGoodsLabel({$vo.label_id});">删除</a>
                {/eq}
            </div>
        </td>
    </tr>
    {/foreach}
    {notempty name="$focus"}
    <script type="text/javascript">
        $(document).ready(function() {
            $('input[name^=label_title]').eq($('.tr').length - 1).focus();
        });
    </script>
    {/notempty}
{/empty}